package com.goofengcn.website.application.util.mail;

import java.util.Locale;
import java.util.ResourceBundle;

/**
 * <p>
 * Title: 邮件配置文件读取
 * </p>
 * 
 * <p>
 * Description:
 * </p>
 * 
 * <p>
 * Copyright: Copyright (c) 2009
 * </p>
 * 
 * <p>
 * Company: 上海美华系统有限公司
 * </p>
 * 
 * @author Johnson
 * @version 1.0
 */
public class MailConfig {
	public static final String BASE_NAME = "mail";

	public static ResourceBundle getBundle() {
		return ResourceBundle.getBundle(BASE_NAME);
	}

	public static ResourceBundle getBundle(Locale locale) {
		return ResourceBundle.getBundle(BASE_NAME, locale);
	}

	public static String getString(String key) {
		return getBundle().getString(key);
	}

	public static String getString(String key, Locale locale) {
		return getBundle(locale).getString(key);
	}
}
